package com.lanou3g.ptp.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户类
 */
@Data
@ApiModel(description = "用户类")
public class User implements Serializable {

    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("手机号")
    private String tel;

    @ApiModelProperty("用户名字")
    private String name;

    @ApiModelProperty("学号")
    private String no;

    @JsonIgnore
    @ApiModelProperty(name = "用户密码", hidden = true)
    private String password;

    @ApiModelProperty(name = "状态", hidden = true)
    private Integer status;

    @ApiModelProperty(name = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(name = "更新时间", hidden = true)
    private Date updateTime;

}
